#ifndef MOREITEMDELEGATE_H
#define MOREITEMDELEGATE_H

#include <QStyledItemDelegate>

class LiveRecorderView;

class MoreItemDelegate : public QStyledItemDelegate
{
    Q_OBJECT

public:
    explicit MoreItemDelegate(LiveRecorderView* view, QObject* parent = nullptr);

    void paint(QPainter* painter, const QStyleOptionViewItem& option,
               const QModelIndex& index) const override;
    QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option,
                          const QModelIndex& index) const override;
    void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option,
                              const QModelIndex& index) const override;

private:
    LiveRecorderView* view_;
};

#endif // MOREITEMDELEGATE_H
